Skip to content

feat(ui): add a Cancel button during ingestion - #64

Merged
francescobianco merged 1 commit into
openapi:mainfrom
jonxsong:codex/7-ingestion-cancel-ui
Dec 4, 2026
Merged

francescobianco merged 1 commit into
openapi:mainfrom
jonxsong:codex/7-ingestion-cancel-ui

Conversation

@jonxsong

@jonxsong jonxsong commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Closes #7.

The Sources pane now shows Cancel beside the progress bar while ingestion is running. Clicking it lets the active source finish and leaves the rest of the queue available for the next run. The button is disabled while ingestion is stopping and hidden when the run ends.

The GTK handler calls the core's existing cancellation method. Queue controls refresh after the worker exits, so a queued source can be started again immediately.

Testing

  • Upstream 911ee0e failed the GTK smoke test because the Sources pane had no Cancel button. The updated smoke passed on Ubuntu 24.04 and inside org.gnome.Platform//51. It verifies the stopping status, completion of the active source, preservation of the rest of the queue, and resumption without replay.
  • make start-flatpak displayed the synthetic fixture project. make test, make check, and python -m pytest -q passed on Linux. Pytest reported 65 passed.
  • Both merge orders with feat(core): ingest queued sources in parallel #63 produced the same tree. The GNOME 51 smoke also passed on the combined tree with two active sources and a third waiting to resume.

Screenshots

Before

Ingestion progress without a Cancel button

After

Cancel beside ingestion progress

The disabled Cancel button while ingestion is stopping

AI assistance

Powered by OpenAI Codex: implementation and testing.

Checklist

  • make test passes
  • UI changes follow the GNOME HIG (and include a screenshot)
  • Any AI assistance used is mentioned in the description

@francescobianco

Copy link
Copy Markdown
Member

Thanks @jonxsong! Small, focused and exactly what #7 asked for: Cancel sits beside the progress bar, it reuses the core's existing cancellation, and the disabled "Stopping…" state makes it obvious that the current source is still finishing. The before/after screenshots helped a lot, and so did checking both merge orders with #63.

I'll merge this right after #63 once fork CI is approved and green. See my note on #63 about the contributors registry too. 🙌

@francescobianco
francescobianco merged commit 2631486 into openapi:main Dec 4, 2026
4 checks passed
@francescobianco

Copy link
Copy Markdown
Member

Merged right after #63, and #7 is closed. Thanks @jonxsong, Cancel is in! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Cancel button while ingesting

2 participants